<%--
  User: Aleksey  (and Integra)
  Date: 03.03.2009
  Time: 2:38:13
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<html>
<link rel="icon" href="favicon.ico" type="image/x-icon">
<f:view locale="#{localeManager.locale}">
    <f:loadBundle var="msgs" basename="messages"/>
    <head>
        <title><h:outputText value="#{msgs['title']}"/></title>
        <link href="olga.css" rel="stylesheet" type="text/css">
    </head>
    <body>
        <h:form id="formmonitor">
            <%@include file="logoPanel.jspf"%>
            <%@include file="navigationPanel.jspf"%>
            <h3><h:outputText value="#{monitor.nameOfTheContest}"></h:outputText> </h3>
            <h:dataTable value="#{monitor.monitorItems}" var="item" styleClass="tableStyle" columnClasses="columnStyle">
             <h:column headerClass="columnHeader" >
                 <f:facet name="header" >
                     <h:outputText value="Place"></h:outputText>
                 </f:facet>
                 <h:outputText value="#{item.place}" ></h:outputText>
             </h:column>

              <h:column   headerClass="columnHeader">
                 <f:facet name="header">
                     <h:outputText value="Name"></h:outputText>
                 </f:facet>
                 <h:outputText value="#{item.name}" ></h:outputText>
             </h:column>

              <h:column headerClass="columnHeader" rendered="#{monitor.letters[0]!=monitor.emptyString}" >
                 <f:facet name="header">
                     <h:outputText value="#{monitor.letters[0]}"></h:outputText>
                 </f:facet>
                 <h:outputText value="#{item.results[0]}" ></h:outputText>
             </h:column>

                <h:column headerClass="columnHeader" rendered="#{monitor.letters[1]!=monitor.emptyString}" >
                 <f:facet name="header">
                     <h:outputText value="#{monitor.letters[1]}"></h:outputText>
                 </f:facet>
                 <h:outputText value="#{item.results[1]}" ></h:outputText>
             </h:column>

              <h:column headerClass="columnHeader" rendered="#{monitor.letters[2]!=monitor.emptyString}">
                 <f:facet name="header">
                     <h:outputText value="#{monitor.letters[2]}"></h:outputText>
                 </f:facet>
                 <h:outputText value="#{item.results[2]}" ></h:outputText>
             </h:column>

              <h:column headerClass="columnHeader" rendered="#{monitor.letters[3]!=monitor.emptyString}" >
                 <f:facet name="header">
                     <h:outputText value="#{monitor.letters[3]}"></h:outputText>
                 </f:facet>
                 <h:outputText value="#{item.results[3]}" ></h:outputText>
             </h:column>

              <h:column headerClass="columnHeader"  rendered="#{monitor.letters[4]!=monitor.emptyString}">
                 <f:facet name="header">
                     <h:outputText value="#{monitor.letters[4]}"></h:outputText>
                 </f:facet>
                 <h:outputText value="#{item.results[4]}" ></h:outputText>
             </h:column>


            <h:column headerClass="columnHeader"  rendered="#{monitor.letters[5]!=monitor.emptyString}">
               <f:facet name="header">
                   <h:outputText value="#{monitor.letters[5]}"></h:outputText>
               </f:facet>
               <h:outputText value="#{item.results[5]}" ></h:outputText>
           </h:column>

              <h:column headerClass="columnHeader" rendered="#{monitor.letters[6]!=monitor.emptyString}" >
               <f:facet name="header">
                   <h:outputText value="#{monitor.letters[6]}"></h:outputText>
               </f:facet>
               <h:outputText value="#{item.results[6]}" ></h:outputText>
           </h:column>

            <h:column headerClass="columnHeader" rendered="#{monitor.letters[7]!=monitor.emptyString}" >
               <f:facet name="header">
                   <h:outputText value="#{monitor.letters[7]}"></h:outputText>
               </f:facet>
               <h:outputText value="#{item.results[7]}" ></h:outputText>
           </h:column>


            <h:column headerClass="columnHeader" rendered="#{monitor.letters[8]!=monitor.emptyString}">
               <f:facet name="header">
                   <h:outputText value="#{monitor.letters[8]}"></h:outputText>
               </f:facet>
               <h:outputText value="#{item.results[8]}" ></h:outputText>
           </h:column>

            <h:column headerClass="columnHeader"  rendered="#{monitor.letters[9]!=monitor.emptyString}">
               <f:facet name="header">
                   <h:outputText value="#{monitor.letters[9]}"></h:outputText>
               </f:facet>
               <h:outputText value="#{item.results[9]}" ></h:outputText>
           </h:column>

            <h:column headerClass="columnHeader" rendered="#{monitor.letters[10]!=monitor.emptyString}" >
               <f:facet name="header">
                   <h:outputText value="#{monitor.letters[10]}"></h:outputText>
               </f:facet>
               <h:outputText value="#{item.results[10]}" ></h:outputText>
           </h:column>

            <h:column headerClass="columnHeader" rendered="#{monitor.letters[11]!=monitor.emptyString}" >
               <f:facet name="header">
                   <h:outputText value="#{monitor.letters[11]}"></h:outputText>
               </f:facet>
               <h:outputText value="#{item.results[11]}" ></h:outputText>
           </h:column>

            <h:column headerClass="columnHeader" >
               <f:facet name="header">
                   <h:outputText value="Total"></h:outputText>
               </f:facet>
               <h:outputText value="#{item.total}" ></h:outputText>
           </h:column>

            <h:column headerClass="columnHeader" >
               <f:facet name="header">
                   <h:outputText value="Time"></h:outputText>
               </f:facet>
               <h:outputText value="#{item.time}" ></h:outputText>
           </h:column>

         </h:dataTable>
        </h:form>
    </body>
</f:view>
</html>